const fs = require('fs');
const path = require('path');
const filePath = path.join(__dirname, 'a.txt');
fs.writeFile(filePath,'test','utf8',(e)=>{
    if(e){
        console.log(e)
    }else{
        console.log('文件创建成功');
    }
});